<link href="$!webPath/resources/style/common/css/window.css" type="text/css" rel="stylesheet" />
<script>
jQuery.validator.addMethod("mobile_telephone",function(value,element){
  if(jQuery("#telephone").val()==""&&jQuery("#mobile").val()==""){
     return false;
	 
  }else return true;
});
jQuery(document).ready(function(){
  //								
 jQuery("#theForm").validate({
	ignore: "",
    rules:{
	  name:{required :true},
	  car_num:{required :true},
	  mobile:{required :true}
	 },
	messages:{
	  name:{required :"联系人人不能为空"},
	  car_num:{required :"车牌号不能为空"},
	  mobile:{required :"手机号不能为空"} 
	}
  });
  
});
</script>
<form action="$!webPath/seller/vehicle_save.htm" method="post" id="theForm">
  <table style="float:left;" width="100%" border="0" cellspacing="0" cellpadding="0" class="box_table">
    <tr>
      <td width="100" align="right" valign="top"><span class="hui_table">联系人</span>：
        <input name="id" type="hidden" id="id" value="$!obj.id" />
      </td>
      <td align="left"><span class="dia_txt">
        <input name="name" type="text" id="name" value="$!obj.name" size="35" />
      </span></td>
    </tr>
    
    <tr>
      <td align="right" valign="top"><span class="hui_table">联系方式</span>：</td>
      <td align="left"><span class="dia_txt">
        <input name="mobile" type="text" id="mobile" value="$!obj.mobile" size="35" />
      </span></td>
    </tr>
    <tr>
      <td align="right" valign="top"><span class="hui_table">车牌号</span>：</td>
      <td align="left"><span class="dia_txt">
        <input name="car_num" type="text" id="car_num" value="$!obj.car_num" size="35" />
      </span></td>
    </tr>
    
    <tr>
      <td colspan="2" align="center"><span class="inputbtn">
        <input name="" type="submit" value="提交" style="cursor:pointer;"/>
        <input name="currentPage" type="hidden" id="currentPage" value="$!currentPage" />
      </span></td>
    </tr>
  </table>
</form>
